Xml
Compound type definitions, element and attribute declarations
In XML schemas, the representations are essentially different for those that allow elements to have their own content, as well as composite types that can carry their own properties
Open the vs command window,
Enter the command: XSD file. xml [/outputdir: Directory] [/parameters: file. xml]
Example:
Appendix 1: categories. xml
XML Version = " 1.0 " Encoding = " UTF-8 " ?> Categories > Category >
1. What is schemaXML Schemas are created with a set of pre-defined XML elements and attributes that define the structure and content patterns of the XML document.The XML schema specifies the structure of an XML document instance and the data type of
1. Simplest schema documentHow to Write a simple XML schema document?
First, we will write out the simplest XML document.
Hello. xml
-------------------
Hello world !!
Hello. XSD
----------
The extension name of the XML schema document is.
XSDL (XML Schema Definition Language)It consists of elements, attributes, namespaces, and other nodes of the XML document type.
I,XSDElement in
The XSD document must include at least the schema root element, the XML schema namespace definition,
Recently, I have worked hard to read the WMFC-defined interface 1 standard document. XML Schema is used for the definition of XML format. XML Schema plays a major role in many aspects, there is a tendency to replace DTD, so I wrote some study notes
Xml
Recently immersed in the wmfc definition of the interface 1 standard document, where the definition of XML format used XML Schema, due to XML Schema in many ways has a great role in the trend to replace the DTD , so here are some learning notes,
Both XML schema and DTD are used for document verification, but there are some differences between them. The former is more accurate and flexible:
DTDDTD does not comply with XML syntaxThe DTD cannot be expanded.DTD does not support namespace
The XSD document must contain at least: the schema root element and the XML Schema namespace definition, element definition. It is important to note that the XSD must define one and only one schema root element, including schema constraints, XML
1. The structure of the XML document can be abstracted up to two aspects: node and attribute
2. DTD Constraints
I. Peer nodes:
Constraints on nodes, it is obvious to describe the structure and type of nodes, etc.
All the descriptions
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.